<template>
  <div class="app-container">
    <el-form ref="queryParams" inline size="mini" :model="queryParams">
      <el-form-item label="用户名称">
        <el-input />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" size="mini">查询</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10">
      <el-col :span="2">
        <el-button
          type="primary"
          plain
          size="mini"
          icon="el-icon-plus"
        >新增</el-button>
      </el-col>
    </el-row>

    <section class="table_group">
      <el-table max-height="500">
        <el-table-column type="selection" />
        <el-table-column label="序号" width="50px" />
        <el-table-column label="项目名称" />
        <el-table-column label="项目编号" />
        <el-table-column label="项目所在区域" />
        <el-table-column label="项目进度" />
        <el-table-column label="操作" />
      </el-table>
      <pagination :total="200" />
    </section>

    <!--添加或修改用户信息-->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
      <el-form ref="form" :model="form" />
    </el-dialog>
  </div>
</template>

<script>
import Pagination from '@/components/Pagination'
export default {
  name: 'User',
  components: { Pagination },
  data() {
    return {
      queryParams: {},

      title: '新增用户',
      open: true,
      form: {}
    }
  },
  methods: {
    resetForm() {
      this.form = {
        nickName: undefined,
        deptId: undefined,
        phoneNumber: undefined,
        email: undefined,
        userId: undefined,
        password: undefined,
        sex: undefined,
        status: 1,
        postIds: [],
        roleIds: [],
        remark: undefined
      }

      this.$refs.form.resetFields()
    }
  }
}
</script>

<style scoped>

</style>
